package com.crm.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

//商机跟进实体类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BusinessRecord {

    private Long id;
    //商机id
    private Long businessId;
    private String keyItems;
    @TableField(value = "`keys`")
    private List<String> keys;
    //跟进状态 1:待跟进 2:跟进中
    private String trackStatus;
    //跟进记录
    private String record;
    //下次跟进时间
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private String nextTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    private Integer createBy;
    private Integer updateBy;
}
